﻿//
// Created by francklinson on 2021/3/23.
//

#include "MyComplex.h"
#include <iostream>

using namespace std;

int main()
{
    MyComplex a(3.0, 4.0); // initialize to (3,4i)
    MyComplex c;
    cout << "Enter a MyComplex number (q to quit):\n";
    while (cin >> c)
    {
        cout << "c is " << c << '\n';
        cout << "MyComplex conjugate is " << ~c << '\n';
        cout << "a is " << a << '\n';
        cout << "a + c is " << a + c << '\n';
        cout << "a - c is " << a - c << '\n';
        cout << "a * c is " << a * c << '\n';
        cout << "2 * c is " << 2 * c << '\n';
        cout << "Enter a MyComplex number (q to quit):\n";
    }
    cout << "Done!\n";
    return 0;
}